//
//  UILabel+DDUILabelCategory.m
//  DDMusic
//
//  Created by rimi on 16/11/5.
//  Copyright © 2016年 FengBaoFamily. All rights reserved.
//

#import "UILabel+DDUILabelCategory.h"

@implementation UILabel (DDUILabelCategory)
+ (instancetype)dd_CreatLabelWithTitle:(NSString*)title font:(CGFloat)font TitleColor:(UIColor*)titleColor TextAlignment:(NSTextAlignment)textAlignment{
    UILabel* label = [[UILabel alloc]init];
    if (title!=nil) {
        label.text = title;
    }
    if (font!=0) {
        label.font = [UIFont systemFontOfSize:font];
    }
    if (titleColor!=nil) {
        label.textColor = titleColor;
    }
    if (textAlignment !=0) {
        label.textAlignment = textAlignment;
        
    }
    
    return label;
}
@end
